﻿#ifndef TICKTIMER_H
#define TICKTIMER_H

#include <QObject>
#include <QTimer>
#include <QTime>

class QSqlQuery;

class tickTimer : public QObject
{
    Q_OBJECT
public:
    explicit tickTimer(QWidget *parentWidget,QObject *parent = nullptr);
    bool load_clock();
    void start();

signals:

private:
    QWidget *m_parentWidget;
    QTimer *m_ticker;
    QSqlQuery *m_clockQuery;
    void tickBell();
    inline int getId(QSqlQuery *query);
    inline QString getTimeStr(QSqlQuery *query);
    inline int getChackValue(QSqlQuery *query);
};

#endif // TICKTIMER_H
